package com.lsb.blog.mapper;

import com.lsb.blog.pojo.Tag;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lsb.blog.vo.TagVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author liusibo
 * @since 2021-08-01
 */
@Repository
public interface TagMapper extends BaseMapper<Tag> {
    //根据文章id查询tag列表
    List<TagVo> findTagsByArticleId(@Param("articleId") Long articleId);
    //查询最热标签列表
    List<TagVo> hot(@Param("limit") int limit);
}
